package com.anyang.mq.common.controller;

import com.anyang.mq.common.domain.Rocketmq;
import com.anyang.mq.common.service.RocketmqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by anyang
 * Email: 1300378587@qq.com
 * Created Date:2019-11-13 11:37
 */
@RestController
public class RocketmqController{
    @Autowired
    RocketmqService rocketmqService;
     @GetMapping("msgList")
    public List<Rocketmq> getMessageList(){
        return  rocketmqService.list();
    }
}
